import { createApp } from 'vue'
import { setupI18n } from '@/locales'
import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import App from './App.vue'

// windicss layers
import 'virtual:windi-base.css'
import 'virtual:windi-components.css'
// custom styles
import '@/design/index.less'
// windicss utilities should be the last style import
import 'virtual:windi-utilities.css'

async function bootstrap() {
    const app = createApp(App)

    // // Configure store
    setupStore(app)

    // Multilingual configuration
    await setupI18n(app)

    // Configure routing
    setupRouter(app)

    app.mount('#app')
}

bootstrap()
